package com.yourname.myapplication.domain.extensions

import com.yourname.myapplication.data.local.entity.QuestionEntity
import com.yourname.myapplication.domain.model.Question

// 将数据库实体转换为业务模型
fun QuestionEntity.toDomainModel() = Question(
    id = id,
    text = text,
    options = options,
    answer = answer,
    explanation = explanation
)